package Si.Assign1.Model;

import java.io.Serializable;
import java.sql.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


public class CustomerOrders 
{
	public CustomerOrders(){}

	/*
	 * Properties
	 */
	
	/*
	 * Set and get id
	 */
	public int getId()
	{   return id;    }
	public void setId(int id)
	{   this.id = id;  }
	
	/*
	 * Set and get customer_id
	 */
	public int getCustomerId()
	{	return customerId;  }
	public void setCustomerId(int customerId)
	{   this.customerId = customerId;  }
	
	/*
	 * Set and get order_date
	 */
	public Date getOrderDate()
	{   return orderDate;    }
	public void setOrderDate(Date orderDate)
	{   this.orderDate = orderDate; }
	
	/*
	 * Set and get ship_date
	 */
	public Date getShipDate()
	{   return shipDate;    }
	public void setShipDate(Date shipDate)
	{   this.shipDate = shipDate;  }
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Basic(optional=false)
	@Column(name="id", nullable=false)
	private int id;
	@Column(name="Customer_id", nullable=false)
	private int customerId;
	@Column(name="order_date", nullable=false)
	private Date orderDate;
	@Column(name="ship_date", nullable=true)
	private Date shipDate;
}
